﻿using System;
using System.Web;
using Easy.BLL;
using Easy.Operation;

namespace Easy.Web.Service.Data
{
    /// <summary>
    /// DeleteItem 的摘要说明
    /// </summary>
    public class DeleteItem : BaseHttpHandler
    {

        public override void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";

            string entityName = context.Request["entityname"];

            string Id = context.Request["id"];


            DataService service = new DataService(entityName, this.CurrentUserId);
            service.Delete(new Guid(Id));
            context.Response.Write(Id);
        }

       
    }
}